﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CStock
{
    public partial class ErrorDialog : Form, IErrorDialog
    {
        public ErrorDialog()
        {
            InitializeComponent();
        }

        private void buttonOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
        }

        private void buttonQuit_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Abort;
        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }
        public string ErrorMessage
        {
            get
            {
                return this.textBoxShortErrorMessage.Text;
            }
            set
            {
                this.textBoxShortErrorMessage.Text = value;
            }
        }
        public string Details
        {
            get
            {
                return this.textBoxDetails.Text;
            }
            set
            {
                this.textBoxDetails.Text = value;
            }
        }
    }
}
